﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GpsServer
{
    /// <summary>
    /// 协议号
    /// </summary>
    public enum ProtocolNo
    {
        /// <summary>
        /// 登录信息
        /// </summary>
        LOGIN = 0x01,
        /// <summary>
        /// 定位信息
        /// </summary>
        LOCATION = 0x12,
        /// <summary>
        /// 状态信息
        /// </summary>
        STATUS = 0x13,
        /// <summary>
        /// 字符串信息
        /// </summary>
        STRING = 0x15,
        /// <summary>
        /// 报警信息
        /// </summary>
        ALARM = 0x16,
        /// <summary>
        /// IMSI信息
        /// </summary>
        IMSI = 0x90,
        /// <summary>
        /// ICCID信息
        /// </summary>
        ICCID = 0x94,
        /// <summary>
        /// 录音信息
        /// </summary>
        RECORD = 0x8D,
        /// <summary>
        /// 下发指令
        /// </summary>
        SEND = 0x80
    }

    /// <summary>
    /// 报警类型
    /// </summary>
    public enum AlarmType
    {
        /// <summary>
        /// 正常
        /// </summary>
        None,
        /// <summary>
        /// 震动报警
        /// </summary>
        Shake,
        /// <summary>
        /// 断电报警
        /// </summary>
        Outage,
        /// <summary>
        /// 低电报警
        /// </summary>
        LowBattery,
        /// <summary>
        /// SOS
        /// </summary>
        SOS
    }
}